﻿/// <reference path="jquery-1.7-vsdoc.js" />

function checkFrom(form) {
    var errorObject = new Array();
    $.each($(form).children(), function () {

        if ($(this).attr("allowempty") == "false") {
            if ($(this).val().length == 0) {
                errorObject.push(this);
            }
        }
    });
    $.each(errorObject, function () {

        $(this).css("border", "red solid 1px");

    });
    if (errorObject.length != 0) {
        return false;
    }
}